var listItems = ['instantNews', 'weibo', 'blog'];

function changeSource(id, url) {
	$("#settings").attr("src", url);
	for (var i=0; i<listItems.length; i++) {
		$("#" + listItems[i]).removeClass('selected');
	}
	$("#" + id).addClass('selected');
};